import { initRequest, myRequest } from '../../api/myRequest';
const _Execute = 'execute';
const _GetExecuteStatus = 'getExecuteStatus';
const _PatrolExecute = 'patrolExecute';
const _PatrolExecuteStatus = 'patrolExecuteStatus';
const _RepairExecute = 'repairExecute';
const _AddCostRecord = 'addCostRecord';
const _EnergyEstimation = 'energyEstimation';
const _MeterRecord = 'meterRecord';
const _EnergyConsume = 'energyConsume';
const _ConsumeCount = 'consumeCount';
const _EnergyReport = 'energyReport';
const _EnergyMonitor = 'energyMonitor';
const _EnergyAnalysis = 'energyAnalysis';
const _EnergyPoint = 'energyPoint';
const _EnergySingleLine ='energySingleLine'
const _EnergyBPL = 'energyBPL';
const _EnergyLineTable = 'energyLineTable';
const _EnergyMediumQuery = 'energyMediumQuery';
const _EnergyCompare = 'energyCompare';
const _GetEquipByWorkShop = 'getEquipByWorkShop'
const _GetNoticeByPlan = 'getNoticeByPlan'
const _EnergyCard = 'energyCard'
const _LocationTrans = 'locationTrans';
const _LocationClear = 'locationClear';
const _AllotAgain = 'allotAgain';
const _BatchNoChange = 'batchNoChange';
const _Allot = 'allot';
const _AlloNoOut = 'allotNoOut';
const _QueryBatch = 'queryBatch';
const _SecurityQuery = 'securityQuery';
const _MobileNotice = 'mobileNotice';
const _GetProduction = 'getProduction';
const _GetTeam = 'getTeam';
const _GetOrder = 'getOrder';
const _GetQuality = 'getQuality';
const _GetEquipData = 'getEquipData';
const _QueryMainBatch = 'queryMainBatch';
const _WorkReport = 'workReport';
const _Draw = 'draw';
const _Back = 'back';
const _Empty = 'empty';
const _Use = 'use';
const _Load = 'load';
const _Pass = 'pass';
const _SieveWorkReport = 'sieveWorkReport';
const _StoreQuery = 'storeQuery';

const _QueryWCostInput = 'queryWCostInput';
const _QueryWCostOutput = 'queryWCostOutput';

const _QueryWCCostInput = 'queryWCCostInput';
const _QueryCCostInput = 'queryCCostInput';
const _QueryWCCostOutput = 'queryWCCostOutput';
const _SyncMaterial = 'syncMaterial';
const _OrderScreen = 'orderScreen';
const _SafeScreen = 'safeScreen';
const _VideoUpload = 'videoUpload';
const _VideoSearch = 'videoSearch';
const _WorkSectionScreen = 'workSectionScreen';
const _SafeVideoUpload = 'safeVideoUpload';
const _SafeVideoSearch = 'safeVideoSearch';
const _QueryOutputByEquip = 'queryOutputByEquip';
const _QueryAbnormalReport = 'queryAbnormalReport';
const _QueryPickAndReturnReport = 'queryPickAndReturnReport';
const _ProductionReport = 'productionReport';
const _PeopleProductionReport = 'peopleProductionReport';
const _WProcessOrderReport = 'wProcessOrderReport';
const _WCProcessOrderReport = 'wcProcessOrderReport';
const _WExistReport = 'wExistReport';
const _WCExistReport = 'wcExistReport';
const _WMixtureReport = 'wMixtureReport';
const _WCMixtureReport = 'wcMixtureReport';
const _WCarbonReport = 'wCarbonReport';
const _QueryQualityReport = 'queryQualityReport';

const _WorkCenterFinishStatistics = 'workCenterFinishStatistics';

const _SetSaleOrderStatus = 'setSaleOrderStatus';
const _SetOrderStatus = 'setOrderStatus';
const _SetPlanStatus = 'setPlanStatus';
const _SetProductStatus = 'setProductStatus';
const _SetQualityNoticeStatus = 'setQualityNoticeStatus';
const _SetQualitySampleStatus = 'setQualitySampleStatus';
const _SetQualityRecordStatus = 'setQualityRecordStatus';
const _SetQualityResultStatus = 'setQualityResultStatus';
const _SetMaintenanceOfEquipment = 'maintenanceOfEquipment';
const _ExecutePlan = 'executePlan'
const _EntityDeleteByIds = 'entityDeleteByIds'
const _TemplateDeleteByIds = 'templateDeleteByIds'
const _ApproveCheckPlan = 'approveCheckPlan'
const _QueryEquipmentSpotTemByEquId ='queryEquipmentSpotTemByEquId'
const _QueryEquipmentMaintainTemByEquId ='queryEquipmentMaintainTemByEquId'
const Custom = {
  /**
   * 设备执行管理中执行操作
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  execute(data) {
    return myRequest(_Execute, data);
  },
  /**
   * 设备维护计划管理执行状态
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  getExecuteStatus(data) {
    return myRequest(_GetExecuteStatus, data);
  },
  /**
   * 设备点巡检执行接口
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  patrolExecute(data) {
    return myRequest(_PatrolExecute, data);
  },
  /**
   * 设备点巡检计划管理执行状态(查询接口)
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  patrolExecuteStatus(data) {
    return myRequest(_PatrolExecuteStatus, data);
  },
  /**
   * 设备维修执行接口
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  repairExecute(data) {
    return myRequest(_RepairExecute, data);
  },
  /**
   * 添加成本科目记录
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  addCostRecord(data) {
    return myRequest(_AddCostRecord, data);
  },
  /**
   * 能源暂估编辑
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  energyEstimation(data) {
    return myRequest(_EnergyEstimation, data);
  },
  /**
   * 仪表抄表
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  meterRecord(data) {
    return myRequest(_MeterRecord, data);
  },
  /**
   * 设备耗能新增
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  energyConsume(data) {
    return myRequest(_EnergyConsume, data);
  },
  /**
   * 能耗项统计
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  consumeCount(data) {
    return myRequest(_ConsumeCount, data);
  },
  /**
  * 能耗报表
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  energyReport(data) {
    return myRequest(_EnergyReport, data);
  },
  /**
  * 能源监控
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  energyMonitor(data) {
    return myRequest(_EnergyMonitor, data);
  },
  /**
  * 能源分析
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  energyAnalysis(data) {
    return myRequest(_EnergyAnalysis, data);
  },
  /**
  * 能源实例点位
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  energyPoint(data) {
    return myRequest(_EnergyPoint, data);
  },
  energySingleLine(data) {
    return myRequest(_EnergySingleLine,data)
  },
  /**
  * 能源柱饼线
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  energyBPL(data) {
    return myRequest(_EnergyBPL, data);
  },
  /**
  * 能源折线加列表
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  energyLineTable(data) {
    return myRequest(_EnergyLineTable, data);
  },
  /**
  * 能源介质查询
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  energyMediumQuery(data) {
    return myRequest(_EnergyMediumQuery, data);
  },
  /**
  * 能源对比
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  energyCompare(data) {
    return myRequest(_EnergyCompare, data);
  },
  /**
  * 根据车间获取设备
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  getEquipByWorkShop(data) {
    return myRequest(_GetEquipByWorkShop, data);
  },
  /**
  * 根据计划获取通知单
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  getNoticeByPlan(data) {
    return myRequest(_GetNoticeByPlan, data);
  },
  /**
  * 能源看板
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  energyCard(data) {
    return myRequest(_EnergyCard, data);
  },
  /**
  * 库位转移
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  locationTrans(data) {
    return myRequest(_LocationTrans, data);
  },
  /**
   * 库位清除占用
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  locationClear(data) {
    return myRequest(_LocationClear, data);
  },
  /**
   * 重新调拨
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  allotAgain(data) {
    return myRequest(_AllotAgain, data);
  },
  /**
  * 批次变更
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  batchNoChange(data) {
    return myRequest(_BatchNoChange, data);
  },
  /**
  * 调拨单更新
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  allot(data) {
    return myRequest(_Allot, data);
  },
  /**
  * 其它入库更新
  * @param data  执行参数
  * @returns {Promise<*>}
  */
  allotNoOut(data) {
    return myRequest(_AlloNoOut, data);
  },
  /**
   * 批次查询
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  queryBatch(data) {
    return myRequest(_QueryBatch, data);
  },
  /**
   * 应急资源管理查询
   * @param data
   * @returns {Promise<*>}
   */
  securityQuery(data) {
    return myRequest(_SecurityQuery, data);
  },
  /**
   * 小程序下发通知
   * @param data
   * @returns {Promise<*>}
   */
  mobileNotice(data) {
    return myRequest(_MobileNotice, data);
  },
  //产量
  getProduction(data) {
    return myRequest(_GetProduction, data);
  },
  //班组
  getTeam(data) {
    return myRequest(_GetTeam, data);
  },
  //订单
  getOrder(data) {
    return myRequest(_GetOrder, data);
  },
  //质量检测
  getQuality(data) {
    return myRequest(_GetQuality, data);
  },
  //设备运行状态
  getEquipData(data) {
    return myRequest(_GetEquipData, data);
  },
  //报工入库接口
  workReport(data) {
    return myRequest(_WorkReport, data);
  },
  //领料接口
  draw(data) {
    return myRequest(_Draw, data);
  },
  //退料接口
  back(data) {
    return myRequest(_Back, data);
  },
  //退空桶接口
  empty(data) {
    return myRequest(_Empty, data);
  },
  //用料接口(暂未用)
  use(data) {
    return myRequest(_Use, data);
  },
  //用料接口
  load(data) {
    return myRequest(_Load, data);
  },
  //放行接口
  pass(data) {
    return myRequest(_Pass, data);
  },
  //筛上物入库接口
  sieveWorkReport(data) {
    return myRequest(_SieveWorkReport, data);
  },
  /**
   * 批次查询
   * @param data  执行参数
   * @returns {Promise<*>}
   */
  queryMainBatch(data) {
    return myRequest(_QueryMainBatch, data);
  },
  //车间库位占用列表查询
  storeQuery(data) {
    return myRequest(_StoreQuery, data);
  },

  //计算本月生产钨粉投入量
  queryWCostInput(data) {
    return myRequest(_QueryWCostInput, data);
  },
  //计算本月生产钨粉产量
  queryWCostOutput(data) {
    return myRequest(_QueryWCostOutput, data);
  },
  //计算本月生产碳化钨粉投入量
  queryWCCostInput(data) {
    return myRequest(_QueryWCCostInput, data);
  },
  //计算本月生产碳化钨粉投入量
  queryCCostInput(data) {
    return myRequest(_QueryCCostInput, data);
  },
  //计算本月生产碳化钨粉产量
  queryWCCostOutput(data) {
    return myRequest(_QueryWCCostOutput, data);
  },
  //物料管理中同步物料
  syncMaterial(data) {
    return myRequest(_SyncMaterial, data);
  },
  //大屏-销售订单
  orderScreen(data) {
    return myRequest(_OrderScreen, data);
  },
  // 大屏-应急指挥中心
  safeScreen(data) {
    return myRequest(_SafeScreen, data);
  },
  // 车间-标语、视频录入
  videoUpload(data) {
    return myRequest(_VideoUpload, data)
  },
  // 车间-标语、视频查询
  videoSearch(data) {
    return myRequest(_VideoSearch, data)
  },
  //中粗粉还原工段等
  workSectionScreen(data) {
    return myRequest(_WorkSectionScreen, data)
  },
  // 应急指挥视频录入
  safeVideoUpload(data) {
    return myRequest(_SafeVideoUpload, data)
  },
  // 应急指挥视频查询
  safeVideoSearch(data) {
    return myRequest(_SafeVideoSearch, data)
  },

  // 产量统计报表根据，产品，时间，返回本月每台设备每天的产量
  queryOutputByEquip(data) {
    return myRequest(_QueryOutputByEquip, data)
  },

  // 生产异常汇总表
  queryAbnormalReport(data) {
    return myRequest(_QueryAbnormalReport, data)
  },
  // 生产领退料汇总表
  queryPickAndReturnReport(data) {
    return myRequest(_QueryPickAndReturnReport, data)
  },
  // 生产产量汇总表
  productionReport(data) {
    return myRequest(_ProductionReport, data)
  },
  // 人员生产产量汇总表
  peopleProductionReport(data) {
    return myRequest(_PeopleProductionReport, data)
  },
  //统计产品订单数据，根据开始结束实际返回数据
  wProcessOrderReport(data) {
    return myRequest(_WProcessOrderReport, data)
  },
  //统计产品订单数据，根据开始结束实际返回数据
  wcProcessOrderReport(data) {
    return myRequest(_WCProcessOrderReport, data)
  },
  // 统计现有钨粉
  wExistReport(data) {
    return myRequest(_WExistReport, data)
  },
   //统计现有碳化钨粉
   wcExistReport(data) {
    return myRequest(_WCExistReport, data)
  },
  // 统计合批钨粉
  wMixtureReport(data) {
    return myRequest(_WMixtureReport, data)
  },
  // 统计合批钨粉
  wCarbonReport(data) {
    return myRequest(_WCarbonReport, data)
  },

  // 统计产品合格率
  queryQualityReport(data) {
    return myRequest(_QueryQualityReport, data)
  },

  // 统计合批碳化钨粉
  wcMixtureReport(data) {
    return myRequest(_WCMixtureReport, data)
  },

  //处理质检结果数据并更新
  setSaleOrderStatus(data){
    return myRequest(_SetSaleOrderStatus, data)
  },
  //处理质检结果数据并更新
  setOrderStatus(data){
    return myRequest(_SetOrderStatus, data)
  },
  //处理质检结果数据并更新
  setPlanStatus(data){
    return myRequest(_SetPlanStatus, data)
  },
  //处理质检结果数据并更新
  setProductStatus(data){
    return myRequest(_SetProductStatus, data)
  },
  //处理质检结果数据并更新
  setQualityNoticeStatus(data){
    return myRequest(_SetQualityNoticeStatus, data)
  },
  //处理质检结果数据并更新
  setQualitySampleStatus(data){
    return myRequest(_SetQualitySampleStatus, data)
  },
  //处理质检结果数据并更新
  setQualityRecordStatus(data){
    return myRequest(_SetQualityRecordStatus, data)
  },
  //处理质检结果数据并更新
  setQualityResultStatus(data){
    return myRequest(_SetQualityResultStatus, data)
  },
  getMaintenanceOfEquipment(data) {
    return myRequest(_SetMaintenanceOfEquipment, data)
  },
  getExecutePlan(data) {
    return myRequest(_ExecutePlan, data)
  },
  entityDeleteByIds(data) {
    return myRequest(_EntityDeleteByIds, data)
  },
  templateDeleteByIds(data) {
    return myRequest(_TemplateDeleteByIds, data)
  },
  approveCheckPlan(data) {
    return myRequest(_ApproveCheckPlan, data)
  },
  getEquipmentSpotTemByEquId(data) {
    return myRequest(_QueryEquipmentSpotTemByEquId, data)
  },
  getQueryEquipmentMaintainTemByEquId(data) {
    return myRequest(_QueryEquipmentMaintainTemByEquId, data)
  },
  // const _QueryEquipmentSpotTemByEquId ='queryEquipmentSpotTemByEquId'
}
// const _ApproveCheckPlan = 'approveCheckPlan'
export default Custom;
